package cn.zcf.basic.utils;

import lombok.Data;

@Data
public class JsonResult {
    private String msg="操作成功";
    private Boolean success=true;
    private Object resultObj;
    public static JsonResult me(){
        return new JsonResult();
    }
    public JsonResult setMsg(String msg){
        this.success = false;
        this.msg = msg;
        return this;
    }
    public JsonResult setResultObj(Object obj){
        this.resultObj = obj;
        return this;
    }
}
